home *** CD-ROM | disk | FTP | other *** search
- function §\x01\x02§()
- {
- return 1687;
- }
- var §\x01§ = -1190 + "\x01\x02"();
- while(true)
- {
- if(eval("\x01") == 497)
- {
- set("\x01",eval("\x01") + 479);
- §§push(true);
- }
- else if(eval("\x01") == 954)
- {
- set("\x01",eval("\x01") - 17);
- }
- else if(eval("\x01") == 330)
- {
- set("\x01",eval("\x01") + 315);
- if(function §\x01\x02§()
- {
- return 1687;
- })
- {
- set("\x01",eval("\x01") + 110);
- }
- }
- else if(eval("\x01") == 75)
- {
- set("\x01",eval("\x01") + 862);
- }
- else if(eval("\x01") == 729)
- {
- set("\x01",eval("\x01") - 399);
- §§push(!function §\x01\x02§()
- {
- return 1687;
- });
- }
- else if(eval("\x01") == 536)
- {
- set("\x01",eval("\x01") + 193);
- §§push(eval(function §\x01\x02§()
- {
- return 1687;
- }));
- }
- else if(eval("\x01") == 515)
- {
- set("\x01",eval("\x01") + 21);
- §§push("\x0f");
- }
- else if(eval("\x01") == 976)
- {
- set("\x01",eval("\x01") - 325);
- if(function §\x01\x02§()
- {
- return 1687;
- })
- {
- set("\x01",eval("\x01") - 576);
- }
- }
- else if(eval("\x01") == 147)
- {
- set("\x01",eval("\x01") + 368);
- var §§pop() = function §\x01\x02§()
- {
- return 1687;
- };
- }
- else
- {
- if(eval("\x01") == 651)
- {
- set("\x01",eval("\x01") - 576);
- toggleHighQuality();
- break;
- }
- if(eval("\x01") == 645)
- {
- set("\x01",eval("\x01") + 110);
- }
- else
- {
- if(eval("\x01") != 937)
- {
- if(eval("\x01") == 755)
- {
- set("\x01",eval("\x01") - 663);
- Movieclip.prototype.clrscr = function()
- {
- removeMovieClip(_root.pop);
- var _loc2_ = 0;
- while(_loc2_ < _root.allb.length)
- {
- removeMovieClip(_root[_root.allb[_loc2_]]);
- _loc2_ = _loc2_ + 1;
- }
- };
- Movieclip.prototype.popscore = function(mc, score)
- {
- _root.attachmovie("pop","pop",_root.popdepth);
- _root.pop._x = _root[mc]._x;
- _root.pop._y = _root[mc]._y;
- _root.pop.a.ad = score;
- _root.pop.follow = mc;
- };
- Movieclip.prototype.create = function()
- {
- _root.attachmovie("dot","b" + _root.b,_root.b);
- _root.allb.push("b" + _root.b);
- var _loc2_ = _root["b" + _root.b];
- if(random(100) > 50)
- {
- _loc2_._x = 0;
- _loc2_._y = random(ymax);
- }
- else
- {
- _loc2_._x = random(xmax);
- _loc2_._y = 0;
- }
- _loc2_.cl = _root.carray.pop();
- set("_root.b",_root.b + 1);
- };
- Movieclip.prototype.line2line = function(px1, py1, px2, py2, qx1, qy1, qx2, qy2)
- {
- if(py2 == py1)
- {
- py2 = py1 + 0.000001;
- }
- else if(px2 == px1)
- {
- px2 = px1 + 0.000001;
- }
- var _loc8_ = px2 - px1;
- var _loc7_ = py2 - py1;
- var _loc6_ = _loc7_ / _loc8_;
- var _loc18_ = py1 - _loc6_ * px1;
- if(qy2 == qy1)
- {
- qy2 = qy1 + 0.000001;
- }
- else if(qx2 == qx1)
- {
- qx2 = qx1 + 0.000001;
- }
- _loc8_ = qx2 - qx1;
- _loc7_ = qy2 - qy1;
- var _loc2_ = _loc7_ / _loc8_;
- var _loc15_ = qy1 - _loc2_ * qx1;
- if(_loc6_ != _loc2_)
- {
- var _loc5_ = (_loc15_ - _loc18_) / (_loc6_ - _loc2_);
- var _loc19_ = _loc2_ * _loc5_ + _loc15_;
- var _loc9_ = (_loc5_ - qx1) / (qx2 - qx1);
- var _loc10_ = (_loc5_ - px1) / (px2 - px1);
- if(_loc9_ >= 0 and _loc9_ <= 1 and (_loc10_ >= 0 and _loc10_ <= 1))
- {
- this.xpc = _loc5_;
- this.ypc = _loc19_;
- return true;
- }
- return false;
- }
- return false;
- };
- Movieclip.prototype.removing = function(target, arr)
- {
- var found = 0;
- var i = 0;
- var n = 0;
- while(!found)
- {
- if(eval(arr)[i] eq target)
- {
- n = i;
- found = 1;
- }
- i += 1;
- }
- eval(arr).splice(n,1);
- };
- Array.prototype.randomize = function()
- {
- return this.sort(function(a, b)
- {
- return Math.floor(Math.random() * 2) != 0 ? -1 : 1;
- }
- );
- };
- Array.prototype.scramble = function()
- {
- var _loc2_ = 0;
- while(_loc2_ < this.length)
- {
- var _loc3_ = random(this.length);
- var _loc4_ = this[_loc3_];
- this[_loc3_] = this[_loc2_];
- this[_loc2_] = _loc4_;
- _loc2_ = _loc2_ + 1;
- }
- };
- Movieclip.prototype.rad = function(qdeg)
- {
- return qdeg * 0.017453292519943295;
- };
- Movieclip.prototype.deg = function(qrad)
- {
- return qrad * 57.2957795130823;
- };
- createLi();
- onMouseDown = function()
- {
- if(_root.canpress)
- {
- _root.pressing = true;
- if(!li)
- {
- createLi();
- }
- trace(li);
- trace(1);
- with(li)
- {
- clear();
- for(var mc in li)
- {
- li[mc].removeMovieClip();
- }
- lineStyle(1,14352247,100);
- }
- set("_root.click",1);
- set("_root.drawtimenow",0);
- _root.linestatus.gotoAndStop(11);
- set("_root.pnum",1);
- set("_root.px",new Array());
- set("_root.py",new Array());
- _root.px[0] = _root._xmouse;
- _root.py[0] = _root._ymouse;
- }
- };
- onEnterFrame = function()
- {
- if(_root.click)
- {
- set("_root.drawtimenow",_root.drawtimenow + 1);
- if(_root.drawtimenow > _root.drawtimemax)
- {
- set("_root.click",0);
- set("_root.drawtimenow",0);
- if(!li)
- {
- createLi();
- }
- with(li)
- {
- clear();
- }
- }
- else if(_root._xmouse != _root.px[_root.pnum - 1] and _root._ymouse != _root.py[_root.pnum - 1])
- {
- if(!li)
- {
- createLi();
- }
- with(li)
- {
- moveTo(_root.px[_root.pnum - 1],_root.py[_root.pnum - 1]);
- lineTo(_root._xmouse,_root._ymouse);
- }
- if(_root.pnum > 5)
- {
- var i = 1;
- while(i < _root.px.length - 3)
- {
- var cek = 0;
- cek = line2line(_root.px[_root.pnum - 1],_root.py[_root.pnum - 1],_root._xmouse,_root._ymouse,_root.px[i],_root.py[i],_root.px[i - 1],_root.py[i - 1]);
- if(cek)
- {
- set("_root.click",0);
- set("_root.drawtimenow",0);
- if(!li)
- {
- createLi();
- }
- with(li)
- {
- clear();
- }
- createEmptyMovieClip("r" + r,r);
- var t = this["r" + r];
- with(t)
- {
- lineStyle(1,14352247,100);
- moveTo(xpc,ypc);
- beginFill(13562992,60);
- t.onEnterFrame = function()
- {
- if(cek != 9)
- {
- cek = 9;
- var _loc3_ = new Array();
- var _loc8_ = new Array();
- var biggest = 0;
- var _loc5_ = 0;
- var _loc4_ = "";
- var _loc9_ = [];
- for(mc in _root.bugs)
- {
- if(this.hitTest(_root.bugs[mc]._x,_root.bugs[mc]._y,true))
- {
- if(_loc4_ == "")
- {
- _loc4_ = _root.bugs[mc].style;
- }
- else if(_loc4_ != _root.bugs[mc].style)
- {
- _loc5_ = 0;
- _loc3_ = [];
- break;
- }
- if(biggest._xscale < _root.bugs[mc]._xscale || biggest == 0)
- {
- biggest = _root.bugs[mc];
- }
- _loc3_[_loc5_] = _root.bugs[mc];
- _loc5_ = _loc5_ + 1;
- }
- }
- if(_loc3_.length > 1)
- {
- i = 0;
- while(i < _loc3_.length)
- {
- trace("biggest " + biggest);
- biggest.hold();
- if(_loc3_[i] != biggest)
- {
- _loc3_[i].onEnterFrame = function()
- {
- var _loc4_ = (this._x - biggest._x) / 5;
- var _loc3_ = (this._y - biggest._y) / 5;
- this._x -= _loc4_;
- this._y -= _loc3_;
- if(this.hitTest(biggest._x,biggest._y,true))
- {
- biggest.num += this._xscale / 5;
- biggest.grow(this._xscale);
- _root.showScore(this,i - 1);
- this.removeMovieClip();
- }
- };
- }
- i++;
- }
- }
- }
- else
- {
- biggest.unhold();
- }
- _alpha -= 5;
- if(_alpha <= 0)
- {
- removeMovieClip(this);
- }
- };
- }
- var f = i;
- while(f < _root.px.length)
- {
- with(t)
- {
- lineTo(_root.px[f],_root.py[f]);
- }
- f++;
- }
- with(t)
- {
- endFill();
- }
- r += 1;
- if(r > 100)
- {
- r = 10;
- }
- _root.polClosed = _root.polClosed + 1;
- _root.pressing = false;
- trace("Polygons closed: " + _root.polClosed);
- break;
- }
- i++;
- }
- }
- _root.px[_root.pnum] = _root._xmouse;
- _root.py[_root.pnum] = _root._ymouse;
- set("_root.pnum",_root.pnum + 1);
- }
- }
- };
- break;
- }
- if(eval("\x01") == 92)
- {
- set("\x01",eval("\x01") - 92);
- }
- break;
- }
- set("\x01",eval("\x01") - 790);
- §§push("\x0f");
- §§push(1);
- }
- }
- }
-